<?php

namespace app\model;

use think\facade\Db;
use think\Model;

class ShopDraftsModel extends Model {

    protected $table ="shop_drafts";

    protected $pk = 'drafts_id';


    public function getShopDrafts($shop_id){
        return Db::name('shop_drafts')->where("shop_id","=",$shop_id)->find();
    }


    /*
     * 删除草稿
     * */
    public function delShopDrafts($shop_id){
        return Db::name('shop_drafts')->where("shop_id","=",$shop_id)->delete();
    }


}